package com.oocl.factory;

import com.oocl.dao.ClientDao;
import com.oocl.dao.FoodDao;
import com.oocl.dao.FoodTypeDao;
import com.oocl.dao.MerchantDao;
import com.oocl.dao.impl.ClientDaoImpl;
import com.oocl.dao.impl.FoodDaoImpl;
import com.oocl.dao.impl.FoodTypeDaoImpl;
import com.oocl.dao.impl.MerchantDaoImpl;

/**
 * @description: 
 * @author  XIEMI2
 * @date Aug 3, 2017 3:59:42 PM
 * @version 1.0
 */
public class DaoFactory {
	
	private static ClientDao clientDao;
	private static FoodDao foodDao;
	private static FoodTypeDao foodTypeDao;
	private static MerchantDao merchantDao;
	
	public static ClientDao getClientDao() {
		clientDao = new ClientDaoImpl();
		return clientDao;
	}
	public static FoodDao getFoodDao() {
		foodDao = new FoodDaoImpl();
		return foodDao;
	}
	public static FoodTypeDao getFoodTypeDao() {
		foodTypeDao = new FoodTypeDaoImpl();
		return foodTypeDao;
	}
	public static MerchantDao getMerchantDao() {
		merchantDao = new MerchantDaoImpl();
		return merchantDao;
	}
	
	
	

}


